@extends('Home/Layout/baseusercenter')

@section('title', '我的收藏')

{{--  首页主体  --}}
@section('main')

@section('title2', '我的收藏')
<div class="uc-content">
    <div class="uc-panel">
                <div class="uc-bigtit">我的收藏</div>
                <div class="uc-panel-bd">
                    <div class="uc-tabs">
                        <a class="item active" href="uc-fav.html">我收藏的商品</a>
                    </div>
                    <table class="uc-table">
                        <tr class="hd">
                            <td widtd="360" class="align-left" >
                                商家名称
                            </td>
                            <td width="100">图片</td>
                            <td width="100">价格</td>
                            <td width="120">操作</td>

                        </tr>

                        @foreach($userFaGoods as $val)
                        <tr class="fav-goods">
                            <td class="item">
                                <span class="name">{{$val[0]->gname}}</span>
                            </td>
                            <td>
                                <img with='200' height='200' src="{{$val[0]->pic}}" alt="" />
                            </td>
                            <td><span class="text-theme fwb">{{$val[0]->price}}元</span></td>
                            <td>
                            <a href="{{url('/goods-detail', $val[0]->id)}}" class="ui-btn-theme uc-btn-md mb5">商品详情</a><br />
                            <a class="text-muted" href="{{url('/rmFav', $val[0]->id)}}">取消收藏</a>
                            </td>
                        </tr>

                        @endforeach
                    </table>
                    <!-- <div class="pages">
                        <a class="page prev" href="">上一页</a>
                        <a class="page" href="">1</a>
                        <span class="cur-page">2</span>
                        <a class="page" href="">3</a>
                        <a class="page" href="">4</a>
                        <i class="page-split">...</i>
                        <a class="page" href="">71</a>
                        <a class="page next" href="">下一页</a>
                    </div> -->
                </div>
            </div>
        </div>
    </div>
</div>
@endsection

@section('footer-js')


@endsection

<script>
$(function () {
    $('.check input').iCheck({
            checkboxClass: 'sty1-checkbox'
        });
});
</script>

